#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <string>
#include<cstring>
using namespace std;

typedef struct Student {
	int age;
	string name;
	char address[20];
}s,*ps;

void showStudent(ps);
ps createStudent();

int main(void) {
	ps c= createStudent();
	showStudent(c);

	return 0;
}

ps createStudent(void) {
	ps p = new s;
	p->age = 18;
	p->name = "Alice";
	strcpy((*p).address, "shanghai");
	return p;
}
void showStudent(ps p) {
	cout << p->age << endl;
	cout << p->name << endl;
	cout << p->address << endl;
}